package com.capsulode.excel;

import java.util.List;

/**
 * A functional interface to consume a batch of row data.
 */
@FunctionalInterface
public interface BatchConsumer<T> {
    /**
     * A function defining consuming a piece of rows.
     *
     * @param t a batch of row data. Not the whole rows of sheet!
     */
    void batch(List<T> t);
}
